<?php

namespace App\model\customer;

use Illuminate\Database\Eloquent\Model;

/**
 * App\model\customer\CustomerRecords
 *
 * @property int $id
 * @property int|null $customer_id 客户资源id
 * @property string|null $desc 跟进记录
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\customer\CustomerRecords newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\customer\CustomerRecords newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\customer\CustomerRecords query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\customer\CustomerRecords whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\customer\CustomerRecords whereCustomerId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\customer\CustomerRecords whereDesc($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\customer\CustomerRecords whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\customer\CustomerRecords whereUpdatedAt($value)
 * @mixin \Eloquent
 * @property-read \App\model\customer\Customer|null $customer
 */
class CustomerRecords extends Model
{
    protected $table='customer_records';
    public function customer(){
        return $this->belongsTo(Customer::class,'customer_id');
    }
}
